import myCreated from './myCreated.js'
import cloudService from './cloudService.js'
import myTeam from './myTeam.js'
import moneyManage from './moneyManage.js'
import myAccount from './myAccount.js'
import agent from './agent.js'

export default [
  {
    path: '/admin',
    redirect: '/admin/index'
  },
  {
    path: '/admin/',
    component: () => import('@/adminPages/AdminLayout'),
    meta:{requiresAuth: true},
    children: [
      {
        path: 'index',
        component: () => import('@/adminPages/index')
      },
      {
        path: 'messages',
        component: () => import('@/adminPages/messages')
      },
      ...myCreated,
      ...cloudService,
      ...myTeam,
      ...moneyManage,
      ...myAccount,
      ...agent
    ]
  },
  {
    path: '/login',
    component: () => import('@/adminPages/login')
  },
  {
    path: '/register',
    component: () => import('@/adminPages/register')
  },
  {
    path: '/getPassword',
    component: () => import('@/adminPages/getPassword')
  }
]
